import 'package:logger/logger.dart';

class NativeLogOutput extends LogOutput {
  void Function(Level, String)? callback;

  NativeLogOutput({this.callback});

  @override
  void output(OutputEvent event) {
    callback?.call(event.level, event.lines.join('\n'));
  }
}
